package com.dragon.mmochat.message;

import java.util.ArrayList;
import java.util.List;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_14_12C extends SkymobiProtocolMessage {
	int hallState;
	int roleId;
	int makeTypeId;
	List<Integer> gridIds = new ArrayList<Integer>();

	public Mmochat_14_12C() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_14_12);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		hallState = in.getUnsignedShort();
		roleId = in.getInt();
		makeTypeId = in.getInt();
		int gridNum = in.getInt();
		for (int i = 0; i < gridNum; i++) {
			gridIds.add(in.getInt());
		}
	}

	public int getRoleId() {
		return roleId;
	}

	public int getMakeTypeId() {
		return makeTypeId;
	}

	public List<Integer> getGridIds() {
		return gridIds;
	}

	public int getHallState() {
		return hallState;
	}

}
